/********************************************************************
	file name:	hy_robot_config.h
	created:	2012/03/26 15:54
	author:		supercaco@sina.com
	purpose:	
*********************************************************************/
#ifndef _HY_ROBOT_CONFIG_H_
#define _HY_ROBOT_CONFIG_H_

#include "hy_json_config.h"

static const std::string task_config_name("task");
#ifdef _WIN32
static const std::string task_config_addr("./config/t_truck.json");
#else
static const std::string task_config_addr(".\\config\\t_truck.json");
#endif


class hy_robot_config : public hy_json_config
{
public:
	hy_robot_config(){}
	~hy_robot_config(){}

	virtual hy_err_t init()
	{
		load_task_config();
		return hy_right;
	}

	hy_err_t load_task_config()
	{
		hy_basic_config* config = new hy_basic_config(&_reader,task_config_addr.data());
		_configs[task_config_name] = config;
		return hy_right;
	}

protected:

};
#endif  //_HY_ROBOT_CONFIG_H_
